<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
<head>
    <title>Main Menu</title>
    <link rel="stylesheet" type="text/css" href="/AplicacionJSF2_2/css/estilos.css"/>	
</head>
<body>
<f:view>
	<h:form>
		<table width="350px;">
			<tr>	
				<td colspan="2" class="celdaTop">
					<h:outputText value="Welcome: "/>
					<c:out value="${sessionScope.username}"/>
				</td>				
			</tr>
			<c:forEach items="${lista}" var="user">
				<tr>
					<td align="right"> # </td>
					<td><c:out value="${user}" /></td>
				</tr>
			</c:forEach>
			<tr>
				<td colspan="2" align="right">
					<h:commandLink  value="Volver" action="#{userBean.volver }"/>
				</td>
			</tr>
		</table>
	</h:form>
</f:view>
</body>
</html>